package com.jarvan.service;

import com.jarvan.model.Refund;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface RefundService {
    Refund save(Refund refund);
    Refund findById(Integer refundId);
    Page<Refund> findAll(Pageable pageable);
    List<Refund> findAllByBuyerAndStatus(Integer buyerId, Integer refundStatus);
    Refund findByTicket(String ticketId);
    Refund delete(Integer refundId);
    Refund recorver(Integer refundId);
    Page<Refund> findByStatus(Integer refundStatus, Pageable pageable);
}
